package boundarys;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JButton;

import ccrm.BoundryControl;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ProduceReportGUI extends AbstractGUI{

	private JFrame frmCcrmproduceReport;


	public ProduceReportGUI() {
		initialize();
		initGUI(frmCcrmproduceReport);
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmCcrmproduceReport = new JFrame();
		frmCcrmproduceReport.setTitle("CCRM>Produce Report");
		frmCcrmproduceReport.setResizable(false);
		frmCcrmproduceReport.setBounds(100, 100, 450, 300);
		frmCcrmproduceReport.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frmCcrmproduceReport.getContentPane().setLayout(null);
		
		JButton MarketingSaleReportBtn = new JButton("Marketing Sale Report");
		MarketingSaleReportBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if(BoundryControl.GUIArr.size()==getIndex()+1)
				{
					frmCcrmproduceReport.dispose();
					new MarketingSaleReportGUI();
				}
			}
		});
		MarketingSaleReportBtn.setBounds(63, 54, 298, 48);
		frmCcrmproduceReport.getContentPane().add(MarketingSaleReportBtn);
		
		JButton CCRBtn = new JButton("Customer Characterization Report");
		CCRBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if(BoundryControl.GUIArr.size()==getIndex()+1)
				{
					frmCcrmproduceReport.dispose();
					new CustomerCharacterazationReportGUI();
				}
			}
		});
		CCRBtn.setBounds(63, 132, 298, 48);
		frmCcrmproduceReport.getContentPane().add(CCRBtn);
		frmCcrmproduceReport.setVisible(true);
	}

	@Override
	public void getReply(Object r) {
		// TODO Auto-generated method stub
		
	}

}
